﻿using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using NHibernate.Criterion;

namespace Cms.BLL
{
    public class Sys_Selfform_Layout : BaseDao<Model.Sys_Selfform_Layout, string>
    {/*
        public IList<Model.Sys_Selfform_Layout> GetModelByListID(string ListId)
        {
            ICriteria crt = this.CurrentSession.CreateCriteria(typeof(Model.Sys_Selfform_Layout));
            crt.Add(Expression.Eq("Listid", ListId));
            return crt.List<Model.Sys_Selfform_Layout >();
        }
        */
        public IList<Model.Sys_Selfform_Layout> GetModelByFormID(string ListId)
        {
            ICriteria crt = this.CurrentSession.CreateCriteria(typeof(Model.Sys_Selfform_Layout));
            crt.Add(Expression.Eq("FormId", ListId));
            return crt.List<Model.Sys_Selfform_Layout>();
        }
    }
}
